package com.example.CarManagement.sys.service;

import com.example.CarManagement.common.Result;
import com.example.CarManagement.sys.entity.Permission;
import com.example.CarManagement.sys.entity.Role;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.CarManagement.sys.entity.RolePermission;

import java.util.List;

/**
 * <p>
 * 角色表 服务类
 * </p>
 *
 * @author 徐佳彪
 * @since 2025-07-11
 */
public interface IRoleService extends IService<Role> {

    // 获取角色列表
    Result<?> getRoleByPage(Integer pageSize, Integer pageNo);

    // 修改角色权限
    Result<?> updateRole(Role role, List<String> permissionList);

    Result<?> addRole(Role role, List<String> permissionList);

    Result<?> deleteRole(String id);

    Result<?> getRoleById(String id);

    Result<?> getRoleByUserSelectList();

    Role getRoleByUserId(String id);
}
